using System;
using System.Collections.Generic;
using System.Text;
using System.Collections.ObjectModel;

namespace Tron.Animations
{
    public class AnimatorCollection<TAnimator> : Collection<TAnimator>
        where TAnimator : Animator
    {
        public AnimatorCollection() { }
        
        public AnimatorCollection(IList<TAnimator> animators)
            : base(animators) { }

        public void Reverse()
        {
            (Items as List<TAnimator>).Reverse();
        }

        public void ClearAnimators()
        {
            foreach (TAnimator animator in this)
                animator.Clear();
        }
    }
}
